import React, { Component } from 'react'
import Search from './components/Search'
import List from './components/List'
import './app.css'

export default class App extends Component {
  /* state = {
    // 初始化状态
    users: [],
    // 第一次打开页面
    isFirst: true,
    // 是否加载
    isLoading: false,
    // 存储请求相关错误信息
    err: ''
  } */

  /* saveUsers = (users) => {
    this.setState({ users })
  } */

  // 更新app的state
  /* updateAppState = (stateObj) => {
    this.setState(stateObj)
  } */



  render() {
    return (
      <div className="app">
        {/* <Search updateAppState={this.updateAppState} />
        <List  {...this.state} /> */}

        <Search/>
        <List/>
      </div>
    )
  }
}
